/**
 * 
 */
package com.manage.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import com.util.Loggable;
import com.util.Util;

public class Channel extends Loggable {

	private int id;
	private String name;
	private String company;
	private String bd;
	private String cooperationtype;
	private String contractDate;
	private String contractEnd;
	/**平台信息:平台名称和分成类型*/
	private String terraceInfo;
	private String remark;
	
	public Channel()
	{
		this.id = -1;
		this.name = "";
		this.company = "";
		this.bd = "";
		this.cooperationtype = "";
		this.contractDate = Util.dateToString(new Date(),"yyyy-MM-dd");
		
		Calendar cal = Calendar.getInstance();
		cal.add(Calendar.YEAR, 1);
		this.contractEnd = Util.dateToString(cal.getTime(),"yyyy-MM-dd");
		this.terraceInfo="";
		this.remark = "";
	}
	
	public String getCooperationtype() {
		return cooperationtype;
	}

	public void setCooperationtype(String cooperationtype) {
		this.cooperationtype = cooperationtype;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public void setId(String id) {
		this.id = Integer.parseInt(id);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getBd() {
		return bd;
	}

	public void setBd(String bd) {
		this.bd = bd;
	}

	public String getContractDate() {
		return contractDate;
	}

	public void setContractDate(String contractDate) {
		this.contractDate = contractDate;
	}

	public String getContractEnd() {
		return contractEnd;
	}

	public void setContractEnd(String contractEnd) {
		this.contractEnd = contractEnd;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getTerraceInfo() {
		return terraceInfo;
	}

	public void setTerraceInfo(String terraceInfo) {		
		this.terraceInfo = terraceInfo;
	}
	
}
